package com.kevin.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1")
public class DrugApi {


    /**
     * http://localhost:11000/msun/drug/api/v1/hello?name=drug
     * @param name
     * @return
     */
    @GetMapping("hello")
    public String hello(@RequestParam("name") String name){
        return name;
    }
}
